package com.heliming.data.utils;

public class BizException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8690668125816251935L;

	public BizException(BizCode bizCode) {
		super(bizCode.getMessage());
		this.bizCode = bizCode;
	}

	public BizException(BizCode bizCode, Exception e) {
		super(e);
		this.bizCode = bizCode;
	}

	public BizCode bizCode;

	public BizCode getBizCode() {
		return bizCode;
	}

	public void setBizCode(BizCode bizCode) {
		this.bizCode = bizCode;
	}

}
